package com.newtouch.bxzs.business.train.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.newtouch.bxzs.business.train.model.bo.ExaminationQuestionSetQuestionBankListBO;
import com.newtouch.bxzs.business.train.model.bo.QuestionBankListBO;
import com.newtouch.bxzs.common.base.model.QuestionBank;

/**
 * 题库基本信息mapper
 *
 * <p>
 * <b>History:</b>
 * <table border="1">
 * <tr>
 * <th>Date</th>
 * <th>Operator</th>
 * <th>Memo</th>
 * </tr>
 * <tr>
 * <td>2021/2/5</td>
 * <td>dongjinlin</td>
 * <td>Create</td>
 * </tr>
 * </table>
 *
 * @author dongjinlin
 * @version 
 * @since 
 */
@Mapper
public interface QuestionBankMapper extends BaseMapper<QuestionBank> {
	
	 
	/**
	 * 查询题库列表
	 * @param questionBankName
	 * @param startPage
	 * @param endPage
	 * @return
	 */
	IPage<QuestionBankListBO> getQuestionBankList(@Param("questionBankName") String questionBankName,
			@Param("page")Page<QuestionBankListBO> page);

	/**
	 * 查询题库列表总数
	 * 
	 * @param questionBankName
	 * @return
	 */
	Integer getQuestionBankListTotal(@Param("questionBankName") String questionBankName);
	
	/**
     * 试题设置归属题库列表
     * @param examinationQuestionId
     * @param startPage
     * @param endPage
     * @return
     */
    IPage<ExaminationQuestionSetQuestionBankListBO> getExaminationQuestionSetQuestionBankList(@Param("examinationQuestionId") String examinationQuestionId,
            @Param("page")Page<ExaminationQuestionSetQuestionBankListBO> page);

    /**
     * 试题设置归属题库列表总数
     * 
     * @param examinationQuestionId
     * @return
     */
    Integer getExaminationQuestionSetQuestionBankListTotal(@Param("examinationQuestionId") String examinationQuestionId);
}
